import request from "@/utils/request";

export default {
  addOrUpdate(selectedId, selectValue) {
    const data = { selectedId, chatperName: selectValue };
    return request({
      url: `/lastRecord/addOrUpdate`,
      method: "post",
      data,
    });
  },
  getLastRecord() {
    return request({
      url: `/lastRecord/getLastRecord`,
      method: "get",
    });
  },
};
